"""
for item in range(3) :
    mima = input("请输入密码")
    if mima=='888':
        print('right password')
        break
    else:
        print("try again")
"""

a=0
while a<3:
    mima1 = input('please enter your password')
    if mima1=='888':
        print('right password')
        break
    else:
        print('try again')